package com.house.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.house.pojo.Houselist;
import com.house.service.ListService;

@Controller
public class allController {
	
	@Autowired
	private ListService LS;
	
	@RequestMapping("/find")
	public String findAllUser(HttpServletRequest request){
		List<Houselist> test = LS.findAllUser();
		
		request.setAttribute("testlist", test);
		return "indextest";
	}

}
